package com.wysql.ascost.model.info;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;
@Data
public class InfoContractstore implements Serializable {
    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "协议库存名称")
    private String filename;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "导入时间")
    private Date creattime;

    @ApiModelProperty(value = "版本信息")
    private String vertion;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "删除标识（0未删除1已删除）")
    private Integer isdelete;


    public InfoContractstore(String id,String filename,Date creattime,String vertion,String memo,Integer isdelete){

        this.id = id;

        this.filename = filename;

        this.creattime = creattime;

        this.vertion = vertion;

        this.memo = memo;

        this.isdelete = isdelete;

    }

    public InfoContractstore() {
        super();
    }

    public String dateToStringConvert(Date date) {
        if (date != null) {
            return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
        }
        return "";
    }


}